{include file='_header.tpl'}

<h3>Создание/редактирование пользователя</h3>

<a href="{$SCRIPT_URL}&a={$ACTIONS_ADM_USERS_LIST}">К списку пользователей</a>

<form method="post" action="{$SCRIPT_URL}&a={$ACTIONS_ADM_USERS_FORM}&action=form">
    <input type="hidden" name="id" value="{$userData["id"]}" />
    <table border="0">
        <tr><td>Логин:</td><td><input type="text" name="name" value="{$userData["name"]}" /></td></tr>
        <tr><td>Пароль:</td><td><input type="text" name="password" value="" /></td></tr>
        <tr><td>E-Mail:</td><td><input type="text" name="mail" value="{$userData["mail"]}" /></td></tr>

        <tr>
            <td>Статус:</td>
            <td>
                <select name="enabled">
                    <option value="1"{if $userData["enabled"]==1} selected{/if}>Включен</option>
                    <option value="0"{if $userData["enabled"]==0} selected{/if}>Выключен</option>
                </select>
            </td>
        </tr>

        <tr>
            <td colspan="2"><center><input type="submit" /></center></td>
        </tr>
    </table>
</form>

{include file='_footer.tpl'}